package com.ditri.blog.controller;

import com.ditri.blog.entity.SpecialInfo;
import com.ditri.blog.service.SpecialInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (SpecialInfo)表控制层
 *
 * @author makejava
 * @since 2020-07-29 18:18:32
 */
@RestController
@RequestMapping("specialInfo")
public class SpecialInfoController {
    /**
     * 服务对象
     */
    @Resource
    private SpecialInfoService specialInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SpecialInfo selectOne(Long id) {
        return this.specialInfoService.queryById(id);
    }

}